<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Banner;
use Illuminate\Http\Request;

class BannerController extends Controller
{
    public function getBannerLists(Request $request){
        $result=Banner::all()->toArray();
        return[
          'code'=>0,
            'data'=>$result,
            'msg'=>'获取成功',
        ];
    }
}
